import { login, sendSms, getUserProfile, editUserProfile, editUserPhoto } from '@/api/user.js'

import { getUserInfo } from '@/api/my.js'

import { getUserChannels } from '@/api/home.js'

import { getArticles, getNewArticlesById, userFollowings, cancelUserFollowings, collectArticle, cancleCollectArticle, likeArticle, cancleLikeArticle } from '@/api/article.js'

import { getAllChannels, editMyChannel, delMyChannel } from '@/api/channel-edit.js'

import { getSearchSuggestion } from '@/api/searchSuggestion.js'

import { getSearchResult } from '@/api/searchResult.js'

import { getComment, likeComment, cancleLikeComment, addComment } from '@/api/comment.js'

// user
export const loginAPI = login
export const sendSmsAPI = sendSms
export const getUserProfileAPI = getUserProfile
export const editUserProfileAPI = editUserProfile
export const editUserPhotoAPI = editUserPhoto

// my
export const getUserInfoAPI = getUserInfo

// home
export const getUserChannelsAPI = getUserChannels

// article
export const getArticlesAPI = getArticles
export const getNewArticlesByIdAPI = getNewArticlesById
export const userFollowingsAPI = userFollowings
export const cancelUserFollowingsAPI = cancelUserFollowings
export const collectArticleAPI = collectArticle
export const cancleCollectArticleAPI = cancleCollectArticle
export const likeArticleAPI = likeArticle
export const cancleLikeArticleAPI = cancleLikeArticle

// channel-edit
export const getAllChannelsAPI = getAllChannels
export const editMyChannelAPI = editMyChannel
export const delMyChannelAPI = delMyChannel

// searchSuggestion
export const getSearchSuggestionAPI = getSearchSuggestion

// searchResult
export const getSearchResultAPI = getSearchResult

// comment
export const getCommentAPI = getComment
export const likeCommentAPI = likeComment
export const cancleLikeCommentAPI = cancleLikeComment
export const addCommentAPI = addComment
